package com.four.reimbursemanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("dailyapply")
public class Dailyapply {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //工号
    private String number;
    //填报日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date writedate;
    //部门
    private String department;
    //报销事由
    private String reason;
    //报销金额
    private String money;
    //上传票据
    private String rill;
    //审批状态
    private Integer state;
}
